<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">

    <title>${_title}</title>

    <!-- Bootstrap core CSS -->

    <link href="${_css}/bootstrap.min.css" rel="stylesheet">

    <link href="${_font}/css/font-awesome.min.css" rel="stylesheet">
    <link href="${_css}/animate.min.css" rel="stylesheet">

    <!-- Custom styling plus plugins -->
    <link href="${_css}/custom.css" rel="stylesheet">
    <link href="${_css}/icheck/flat/green.css" rel="stylesheet">


    <script src="${_js}/jquery.min.js"></script>

    <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body style="background:#F7F7F7;">
    <div>
        <div id="wrapper">
            <div class="animate form">
                <section class="login_content">
                    <form id="loginForm" method="post" action="/admin/submit">
                        <h1>迅泊达后台管理系统</h1>
                        <div>
                            <input type="text" name="userName" class="form-control" placeholder="用户名" required="true" />
                        </div>
                        <div>
                            <input type="password" name="password" class="form-control" placeholder="密码" required="true" />
                        </div>
                        <div>
                            <input type="text" name="code" style="width:210px" class="form-control pull-left" placeholder="验证码" required="true" />
                        	<img src="/admin/captcha" title="点击刷新" class="fl" onclick="javascript:this.src='/admin/captcha?'+new Date()" style="cursor:pointer">
                        	<div class="clearfix"></div>
                        </div>
                        <!--
	                        <div>
	                        	<input id="_spring_security_remember_me" name="_spring_security_remember_me" type="checkbox" value="true"/>  
	                        </div>
                        -->                        
                        <div>
                            <a class="btn btn-default pull-left" id="submit-btn"  href="javascript:;">登录</a>
                            <span class="pull-right" style="margin: 10px 15px 0 0;font-size:13px;color:red">${msg!}</span>
                        </div>
                        <div class="clearfix"></div>
                        <div class="separator">
                            <div>
                                <p>©2015 All Rights Reserved</p>
                            </div>
                        </div>
                    </form>
                </section>
            </div>
        </div>
    </div>
    
<script type="text/javascript">
	$(document).keydown(function(event){ 
		if(event.keyCode==13){ 
			$("#submit-btn").click(); 
		}
	});
		 
	$("#submit-btn").click(function(){
		$("#loginForm").submit();
	})
</script>
</body>

</html>